package klasy.powtorka;

import java.text.NumberFormat;


public class Formater {

	public static void main(String[] args) {

		double x = 0.1;
		
		NumberFormat currencyFormatter = NumberFormat.getCurrencyInstance();
		NumberFormat percentFormattee = NumberFormat.getPercentInstance();
		
		System.out.println(currencyFormatter.format(x));
		System.out.println(percentFormattee.format(x));
		
		double y = 3;
		System.out.println(y);
		System.out.println(tripleValue(y));
		System.out.println(y);
		
		Employee harry = new Employee("Harry", 200, 2000, 12, 1);
		System.out.println(harry.getSalary());
		tripleSalary(harry);
		System.out.println(harry.getSalary());
		
	}

	public static double tripleValue(double x){
		return x *= 3;
	}
	
	public static void tripleSalary(Employee x){
		x.raiseSalary(200);
	}
}
